package com.situ.hotel.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Order {
    private Integer id;
    
    
    @JsonFormat(
    		pattern = "yyyy-MM-dd HH:mm:ss",
    		timezone = "GMT+8"
    		)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date start;
    @JsonFormat(
    		pattern = "yyyy-MM-dd HH:mm:ss",
    		timezone = "GMT+8"
    		)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date end;
    @JsonFormat(
    		pattern = "yyyy-MM-dd HH:mm:ss",
    		timezone = "GMT+8"
    		)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inTime;
    @JsonFormat(
    		pattern = "yyyy-MM-dd HH:mm:ss",
    		timezone = "GMT+8"
    		)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date out;
    
    private BigDecimal deposit;
    private BigDecimal cost;
    private Integer roomId;
    private Integer userId;
    private Integer status;
    
    private Room room;
    private User user;
    
    
    private List<User> users;
    
    
	public List<User> getUsers() {
		return users;
	}
	public void setUsers(List<User> users) {
		this.users = users;
	}
	
	public Room getRoom() {
		return room;
	}
	public void setRoom(Room room) {
		this.room = room;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getStart() {
		return start;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	public Date getEnd() {
		return end;
	}
	public void setEnd(Date end) {
		this.end = end;
	}
	public Date getInTime() {
		return inTime;
	}
	public void setInTime(Date inTime) {
		this.inTime = inTime;
	}
	public Date getOut() {
		return out;
	}
	public void setOut(Date out) {
		this.out = out;
	}
	public BigDecimal getDeposit() {
		return deposit;
	}
	public void setDeposit(BigDecimal deposit) {
		this.deposit = deposit;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}
	public Integer getRoomId() {
		return roomId;
	}
	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Order() {
		super();
		// TODO Auto-generated constructor stub
	}
}
